<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template replace_view</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../headers.html#doxygen.headers.replace_8hpp" title="Header &lt;boost/parser/replace.hpp&gt;">
<link rel="prev" href="namespaceboost_1_1parser_1aff1026fa1c7986efb853fc6eb28f814c.html" title="Function template _report_warning">
<link rel="next" href="structboost_1_1parser_1_1replace__view_1_1iterator.html" title="Struct template iterator">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1aff1026fa1c7986efb853fc6eb28f814c.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.replace_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1replace__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.structboost_1_1parser_1_1replace__view"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template replace_view</span></h2>
<p>boost::parser::replace_view</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../headers.html#doxygen.headers.replace_8hpp" title="Header &lt;boost/parser/replace.hpp&gt;">boost/parser/replace.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ranges</span><span class="special">::</span><span class="identifier">viewable_range</span> V<span class="special">,</span> 
         <span class="identifier">std</span><span class="special">::</span><span class="identifier">ranges</span><span class="special">::</span><span class="identifier">viewable_range</span> ReplacementV<span class="special">,</span> <span class="keyword">typename</span> Parser<span class="special">,</span> 
         <span class="keyword">typename</span> GlobalState<span class="special">,</span> <span class="keyword">typename</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> SkipParser<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html" title="Struct template replace_view">replace_view</a> <span class="special">{</span>
  <span class="comment">// member classes/structs/unions</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1ae8581780534e713c3efaf1a2cb8b7fd3"><span class="identifier">I</span></a><span class="special">;</span>             
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1ad6e085f1ab017d1fbaa539c64ee3631b"><span class="identifier">S</span></a><span class="special">;</span>             
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1a4f9a100c9ae13de0688b5734cfa1013a"><span class="identifier">ref_t_iter</span></a><span class="special">;</span>    
    <span class="keyword">typedef</span> <span class="identifier">BOOST_PARSER_SUBRANGE</span><span class="special">&lt;</span> <span class="identifier">ref_t_iter</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1a7b62e9b0bab2ac12ab291e4f796edb6d"><span class="identifier">reference_type</span></a><span class="special">;</span>
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span>                         <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1a3e2d830f764376bfd7f9f31b56cacdd9"><span class="identifier">base_type</span></a><span class="special">;</span>     

    <span class="comment">// <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#id-1_3_26_11_7_1_1_1_3_7-bb">public member functions</a></span>
    <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1ae28627efa53b6500ceeeb27eec24e2a5"><span class="identifier">iterator</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1a15ebb938494102d13c1538be3ff4c524"><span class="identifier">iterator</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">&amp;</span> <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1a0f7bc905d00cb1e1941256c7f2fbe8b4"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">reference_type</span> <a class="link" href="structboost_1_1parser_1_1replace__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1_1iterator_1af2179932087da5772620bbd608721c0d"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1replace__view_1_1sentinel.html" title="Struct template sentinel">sentinel</a> <span class="special">{</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="structboost_1_1parser_1_1replace__view.html#id-1_3_26_11_7_1_1_1_5-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a336da08fd60c15773e18c0802685cd3c"><span class="identifier">replace_view</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a19a529d069c5a2c52926f2a105189784"><span class="identifier">replace_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> 
               <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
               <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">ReplacementV</span><span class="special">,</span> 
               <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a77b2ed923f524ff7d50d0f40f92320ed"><span class="identifier">replace_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> 
               <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="identifier">ReplacementV</span><span class="special">,</span> <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a2f56296ff74ee250b5c7df2b00061bc2"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a5b39da8ed9d965c8515b5d23c27dbbef"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1acabe9465a844eb83e0e7a9d80b92116b"><span class="identifier">replacement</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a90b55366cfb77e7504cef9718382829e"><span class="identifier">replacement</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a0f847942d8e39607c5e67e544ba4e339"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1a7fb19f6b5f049e993791600d9a4f8e45"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1aed455cf7fbd0e219d532db8bcd8d0912"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1replace__view.html#doxygen.headers.structboost_1_1parser_1_1replace__view_1add62f4a9863120396081861ee9afacfa"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.26.11.7.3.4"></a><h2>Description</h2>
<p>Produces a range of subranges of a given range <code class="computeroutput">base</code>. Each subrange is either a subrange of <code class="computeroutput">base</code> that does not match the given parser <code class="computeroutput">parser</code>, or is the given replacement for a match, <code class="computeroutput">replacement</code>.</p>
<p>In addition to the template parameter constraints, <code class="computeroutput">V</code> and <code class="computeroutput">ReplacementV</code> must be ranges of <code class="computeroutput">char</code>, or must have the same UTF format, and <code class="computeroutput">V</code> and <code class="computeroutput">ReplacementV</code> must meet the same compatibility requirements as described in <code class="computeroutput">std::ranges::join_view</code>. </p>
<div class="refsect2">
<a name="id-1.3.26.11.7.3.4.4"></a><h3>
<a name="id-1_3_26_11_7_1_1_1_5-bb"></a><code class="computeroutput">replace_view</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a336da08fd60c15773e18c0802685cd3c"></a><span class="identifier">replace_view</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a19a529d069c5a2c52926f2a105189784"></a><span class="identifier">replace_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
             <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
             <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> skip<span class="special">,</span> 
             <span class="identifier">ReplacementV</span> replacement<span class="special">,</span> <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a77b2ed923f524ff7d50d0f40f92320ed"></a><span class="identifier">replace_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
             <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
             <span class="identifier">ReplacementV</span> replacement<span class="special">,</span> <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a2f56296ff74ee250b5c7df2b00061bc2"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a5b39da8ed9d965c8515b5d23c27dbbef"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1acabe9465a844eb83e0e7a9d80b92116b"></a><span class="identifier">replacement</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a90b55366cfb77e7504cef9718382829e"></a><span class="identifier">replacement</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a0f847942d8e39607c5e67e544ba4e339"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1a7fb19f6b5f049e993791600d9a4f8e45"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1aed455cf7fbd0e219d532db8bcd8d0912"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1replace__view_1add62f4a9863120396081861ee9afacfa"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1aff1026fa1c7986efb853fc6eb28f814c.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.replace_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1replace__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
